<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../CSS/skin01.css" id="link01">
    <script>
        window.onload = function () {
            var oLink = document.getElementById('link01');
            // oLink.href = "./../CSS/skin02.css";
            var oBtn01 = document.getElementById('btn01');
            var oBtn02 = document.getElementById('btn02');
            oBtn01.onclick = function () {
                oLink.href = "../CSS/skin01.css";
            }
            oBtn02.onclick = function () {
                oLink.href = "../CSS/skin02.css";
            }
            
        }
    </script>
</head>
<body>
    <h1>网页内容</h1>
    <input type="button" value="皮肤一" id="btn01">
    <input type="button" value="皮肤二" id="btn02">
</body>
</html>